"""
URL configuration for Task_Manage_Sys project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path, include
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
)
from user.routers import  router as user_route
from clazz.routers import  router as clazz_route
from Stage.routers import router as stage_route
from module.routers import router as module_route
from task.routers import router as task_route
from group.routers import router as group_route
urlpatterns = [

    path('auth/', include('rest_framework.urls')),

    path('api/token', TokenObtainPairView.as_view(), name='token_obtain_pair'),
    path('api/token/refresh', TokenRefreshView.as_view(), name='token_refresh'),

    #将应用路由注册到项目路由中
    path('user-app/',include(user_route.urls)), #注册user 项目路由

    path('user-app/',include(clazz_route.urls)),#注册clazz 项目路由

    path('user-app/',include(stage_route.urls)),#注册 stage 项目路由
    #
    path('user-app/',include(module_route.urls)),# 注册 module 项目模型
    #
    path('user-app/',include(task_route.urls)), #注册 task 项目路由
    #
    path('user-app/',include(group_route.urls)),# 注册 group 项目路由


]

